/*package us.gaaoc.framework.webapp.backingbeans.agent.reports;

import us.gaaoc.framework.util.HibernatePhaseListener;
import us.gaaoc.framework.webapp.backingbeans.BaseBackingBean;

public class DocumentStatistics  extends BaseBackingBean{
	private int numberOfDocuments;
	private int numberOfDocumentsByCategoryExcludingDataFiles;
	private int numberOfDocumentsByCategoryAndTypeExcludingDataFiles;
	private int numberOfDocumentsByMonth;
	
	public int getNumberOfDocuments() {
		numberOfDocuments=this.getModelFacade().countDocuments();
	//	System.out.println("NumberOfDocuments="+numberOfDocuments);
		return numberOfDocuments;
	}
	public void setNumberOfDocuments(int numberOfDocuments) {
		this.numberOfDocuments = numberOfDocuments;
	}
	public int getNumberOfDocumentsByCategoryExcludingDataFiles() {
		numberOfDocumentsByCategoryExcludingDataFiles=this.getModelFacade().countDocumentsByCategoryExcludingDataFiles();
		//System.out.println("NumberOfDocumentsByCategoryExcludingDataFiles="+numberOfDocumentsByCategoryExcludingDataFiles);
		return numberOfDocumentsByCategoryExcludingDataFiles;
	}
	public void setNumberOfDocumentsByCategoryExcludingDataFiles(
			int numberOfDocumentsByCategoryExcludingDataFiles) {
		this.numberOfDocumentsByCategoryExcludingDataFiles = numberOfDocumentsByCategoryExcludingDataFiles;
	}
	public int getNumberOfDocumentsByCategoryAndTypeExcludingDataFiles() {
		numberOfDocumentsByCategoryAndTypeExcludingDataFiles=this.getModelFacade().countNumberOfDocumentsByCategoryAndTypeExcludingDataFiles();
		//System.out.println("NumberOfDocumentsByCategoryAndTypeExcludingDataFiles="+numberOfDocumentsByCategoryAndTypeExcludingDataFiles);
		return numberOfDocumentsByCategoryAndTypeExcludingDataFiles;
	}
	public void setNumberOfDocumentsByCategoryAndTypeExcludingDataFiles(
			int numberOfDocumentsByCategoryAndTypeExcludingDataFiles) {
		this.numberOfDocumentsByCategoryAndTypeExcludingDataFiles = numberOfDocumentsByCategoryAndTypeExcludingDataFiles;
	}
	public int getNumberOfDocumentsByMonth() {
		numberOfDocumentsByMonth=this.getModelFacade().countDocumentsByMonth();
		//System.out.println("NumberOfDocumentsByMonth="+numberOfDocumentsByMonth);
		return numberOfDocumentsByMonth;
	}
	public void setNumberOfDocumentsByMonth(int numberOfDocumentsByMonth) {
		this.numberOfDocumentsByMonth = numberOfDocumentsByMonth;
	}
	public static void main(String args[]){
		DocumentStatistics ds=new DocumentStatistics();
		 HibernatePhaseListener.getSessionFactory().getCurrentSession().beginTransaction();
		 ds.getNumberOfDocuments();
		 ds.getNumberOfDocumentsByCategoryAndTypeExcludingDataFiles();
		 ds.getNumberOfDocumentsByCategoryExcludingDataFiles();
		 ds.getNumberOfDocumentsByMonth();
	} */
//}*/
package us.gaaoc.framework.webapp.backingbeans.agent.reports;

import java.util.ArrayList;
import java.util.List;

import javax.faces.model.DataModel;
import javax.faces.model.ListDataModel;

import org.springframework.beans.factory.annotation.Configurable;
import org.springframework.transaction.annotation.Transactional;

import us.gaaoc.framework.model.util.DocumentsCountByType;
import us.gaaoc.framework.model.util.DocumentsCountPerMonth;
import us.gaaoc.framework.webapp.backingbeans.BaseBackingBean;

public class DocumentStatistics  extends BaseBackingBean{

	
		private int numberOfDocuments;
	    private List<DocumentsCountByType> numberOfDocumentsByType = new ArrayList<DocumentsCountByType>();
		private List<DocumentsCountPerMonth> numberOfDocumentsPerMonth;
		private DataModel dataTableList;
		private DocumentsCountByType dct=new DocumentsCountByType();
		
	
		
		public int getNumberOfDocuments() {
			numberOfDocuments=this.getModelFacade().countDocuments();
		//	System.out.println("NumberOfDocuments="+numberOfDocuments);
			return numberOfDocuments;
		}
		public void setNumberOfDocuments(int numberOfDocuments) {
			this.numberOfDocuments = numberOfDocuments;
			
		}
		
		
		public List<DocumentsCountPerMonth>  getNumberOfDocumentsByMonth() {
			 List<DocumentsCountPerMonth> monthList=this.getModelFacade().countDocumentsByMonth();
			//System.out.println("NumberOfDocumentsByMonth="+numberOfDocumentsByMonth);
			return monthList;
		
		}
		public void setNumberOfDocumentsByMonth(int numberOfDocumentsByMonth) {
			this.numberOfDocumentsPerMonth = numberOfDocumentsPerMonth;
		}
		public String back() {
			return "back";
		}
			
		public String goToDocumentsByType(){
			return "goToDocumentsByType";
		}
	
	}


	